<template>
  <div class="playlist_card">
    <div class="item">
      <div class="header">
        <img v-lazy="src" alt />
        <i class="top_left" v-show="top_left"></i>
        <i class="playcount">
          <b></b>
          <span>{{count<10000?count:Math.round(count/10000)+"万"}}</span>
        </i>
      </div>
      <p class="info el2">{{info}}</p>
    </div>
  </div>
</template>
<script>
export default {
  props: ["src", "count", "info", "top_left"],
  data() {
    return {};
  }
};
</script>
<style lang="scss" scoped>
.playlist_card {
  padding-bottom: 0.4rem;
  .item {
    width: 2.2rem;
    p.info {
      font-size: 0.26rem;
      color: #555;
      text-align: left;
    }
    .header {
      position: relative;
      img {
        border-radius: 0.14rem;
      }
      i.top_left {
        position: absolute;
        top: 0;
        left: 0rem;
        background: url(../images/ghi.png) no-repeat 0.05rem 0.05rem;
        width: 0.45rem;
        height: 0.45rem;
        background-size: 70% 70%;
        background-color: rgba($color: #ffc082, $alpha: 0.9);
        border-top-left-radius: 0.1rem;
        border-bottom-right-radius: 90%;
      }
      i.playcount {
        position: absolute;
        top: 0;
        right: 0.1rem;
        color: #fff;
        font-size: 0.22rem;
        > b {
          background: url(../images/play_w.png) no-repeat;
          background-size: 100% 100%;
          width: 0.26rem;
          height: 0.26rem;
          display: inline-block;
          vertical-align: text-top;
        }
        > span {
          vertical-align: text-top;
        }
      }
    }
  }
}
</style>